import service from "@/utils/request";

const TagRuleApi = {
  // ----------------标签-----------------
  classifyTree: function() {
    //新增标签分类树
    return service.get("serverClassify/idNameTree");
  },
  tagInfoPageList: function(data) {
    //标签列表
    return service.get("tagInfo/page", { params: data });
  },
  tagInfoInfo: function(data) {
    //查看详情
    return service.get("/tagInfo", { params: data });
  },
  tagInfoPageCreate:function(data){
    //添加标签
    return service.post("/tagInfo", data);
  },
  tagInfoPageEdit:function(data){
    //修改标签
    return service.put("/tagInfo", data);
  },
  tagDelete:function(data){
     return service.put('tagInfo/delete',data)
  }

  //   listPromoteRule:function(data){
  //     return service.get('promoteRule/page', {params:data})
  //   },
  //   addPromoteRule:function(data){
  //     return service.post('promoteRule', data)
  //   },
  //   editPromoteRule:function(data){
  //     return service.put('promoteRule', data)
  //   },
  //   updatePromoteRuleState:function(data){
  //     return service.put('promoteRule/updatePromoteRuleState', data)
  //   },
  //   deletePromoteRule:function(data){
  //     return service.put('promoteRule/delete', data)
  //   },
  //   getPromoteRule(data){
  //     return service.get('promoteRule', {params:data})
  //   },
  //   promoteRuleList(data){
  //     return service.get('promoteRule/listIdName', {params:data})
  //   },
  //   promoteProfitList(data){
  //     return service.get('promoteProfit/listRule', {params:data})
  //   },
  //   setPromoteProfit(data){
  //     return service.post('promoteProfit/setPromoteProfit',data)
  //   }
};

export default TagRuleApi;
